package com.roc.admin.domain.valueobject;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户权限值对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限标识
     */
    private String permission;

    /**
     * 权限类型：0-菜单权限，1-按钮权限
     */
    private Integer type;

    public String getCode() {
        return permission;
    }
}
